import './App.css'
import IndexRouter from './router/indexRouter'
import { PersistGate } from 'redux-persist/integration/react'
//分发，将store派发给各组件
import {Provider} from 'react-redux'
import {store,persistor} from './redux/store'
function App(){
 return <Provider store={store}>
   <PersistGate loading={null} persistor={persistor}>
   <IndexRouter></IndexRouter>
   </PersistGate>
 </Provider>
 
}
export default App

